using Tatibah;

namespace Lists
{
	// See the DocumetAPI.PDF fro the results
    class Program
    {
        static void Main(string[] args)
        {
            // Create the document
            Document document = new Document(@"C:\Tatibah\Results\Lists.docx");

            // Initial Paragraph with some spacing of 6 points after it
            document.Append(new Paragraph("The following list used the \"bomb\"" +
                " character from the font Wingdings as the bullet character") { SpacingAfter = Document.pointsToDxa(6) });

            // Create a bullet list
            NumberedList bulletList = new NumberedList('\u004D', "Wingdings");
            bulletList.Append("List item 1", "List item 2", "List item 3");
            document.Append(bulletList);

            // Add a paragraph with a bit of spacing between
            document.Append(new Paragraph("Next list start at 11 using lower case roman numerals") { SpacingBefore = Document.pointsToDxa(6), SpacingAfter = Document.pointsToDxa(6) });

            // Add a Roman numeral list, start at 11 
            NumberedList romanList = new NumberedList(enumDocumentListType.LowerRoman, 11);
            romanList.Append(
                new Paragraph("1st item"),
                new Paragraph("2nd item"),
                new Paragraph(new Run("3rd "), new Run("item") { UnderLine = true }));
            document.Append(romanList);

            // Save the Document
            document.Save();
            document.Close();

        }
    }
}
